package com.ding.dailyup.controller;

import com.ding.dailyup.entity.JsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys")
@Api(tags = "系统环境")
public class HealthController {

	@GetMapping("/health")
	@ApiOperation(value = "是否健康")
	public JsonResult health() {
		return JsonResult
				.succResult(String.valueOf(System.currentTimeMillis()));
	}
}
